package com.magic.zhixin.repository;

import com.magic.zhixin.entity.Answer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AnswerRepository extends JpaRepository<Answer,Long>{
    List<Answer> findByQuestionId(Long id);

    Answer findByIdIs(Long answer);

    void deleteAnswerByQuestionId(Long  questionId);
}
